package bist.believeinstep.logic;

import java.util.List;

import bist.believeinstep.domain.TravelingArticle;
import bist.believeinstep.impl.TravelingArticleTemplate;
import bist.believeinstep.util.Util;

public class TravelingArticleService {
	private TravelingArticleTemplate travelingArticleTemplate;
	
	public TravelingArticleService(){
		travelingArticleTemplate = (TravelingArticleTemplate)Util.getConnection("travelingArticleTemplate");
	}
	public void create(TravelingArticle travelingArticle){
		travelingArticleTemplate.create(travelingArticle);
	}
	public void update(TravelingArticle travelingArticle){
		travelingArticleTemplate.update(travelingArticle);
	}
	public TravelingArticle getTravelingArticle(Integer id){
		return travelingArticleTemplate.getTravelingArticle(id);
	}
	public void delete(Integer id){
		travelingArticleTemplate.delete(id);
	}
	public List<TravelingArticle> list(){
		return travelingArticleTemplate.list();
	}
}
